/*
 * $Id: Template.java,v 1.2 2003/05/18 20:05:12 znamenacek Exp $
 *
 * Copyright (c) Milan Jedlicka
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

package net.sf.vofce.export;

import java.io.File;

/**
 * Interface for templates exporting to various formats.
 * Templates uses ImageExporter for exporting graphs and
 * Function instance for exporting function descriptions.
 *
 * @author Milan Jedlicka
 */
public interface Template {

	/** Internal template. */
	public static final int TT_INTERNAL = 0;

	/** User defined template. */
	public static final int TT_USER = 1;

	/** System directory template. */
	public static final int TT_SYSTEM = 2;
	
	/** @return  name of template*/
	public String getName();
	
	/** @return  description of template*/
	public String getDescription();

	/** @return  description of template*/
	public String getExtension();

	/** @return  author of template*/
	public String getAuthor();

	/** @return  version of template*/
	public String getVersion();

	/** Set up Image Exporter for template  */
	public void setImgExporter(ImageExporter ie);

	/** Export whith template to file */
	public void exportTo(File file);

	/** Returns template type (user / system / internal). */
	public int getType();
}
